import request from '@/utils/request'

export function recognizePest(formData) {
  return request({
    url: '/insect/identify/recognize',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
  })
}

export function saveRecord(data) {
  return request({
    url: '/insect/identify',
    method: 'post',
    data: data
  })
}

export function getRecords(params) {
  return request({
    url: '/insect/identify'+ id,
    method: 'get',
    params: params
  })
}
